package com.bestcem.xm.award.dao.mapper;

import com.bestcem.xm.award.entity.mysql.AwardVoucherEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 卡券奖励mapper
 *
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/14 15:29
 */
@Mapper
public interface AwardVoucherEntityMapper {
    /**
     *
     * @date 2021-09-23
     */
    int deleteByPrimaryKey(@Param("awardId") String awardId, @Param("deviceType") Integer deviceType);

    /**
     *
     * @date 2021-09-23
     */
    int insert(AwardVoucherEntity record);

    /**
     *
     * @date 2021-09-23
     */
    int insertSelective(AwardVoucherEntity record);

    /**
     *
     * @date 2021-09-23
     */
    AwardVoucherEntity selectByPrimaryKey(@Param("awardId") String awardId, @Param("deviceType") Integer deviceType);

    /**
     *
     * @date 2021-09-23
     */
    int updateByPrimaryKeySelective(AwardVoucherEntity record);

    /**
     *
     * @date 2021-09-23
     */
    int updateByPrimaryKey(AwardVoucherEntity record);
}